﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>表单的一些新属性</title>
  <style>
    input[type=text]::-webkit-input-placeholder {
      color: orange
    }

    input[type=text] {
      border: 2px solid black;
    }

    input[type=checkbox] {
      display: block;
      width: 100px;
      height: 100px;
    }

  </style>
</head>

<body>
  <!--

    autocomplete  有两个状态  on   off
    autofocus  自动获取焦点
    placeholder   提示内容
    multiple  可以同时选取多个文件 添加图片
    required  输入区不能为空
    ::-webkit-input-placeholder  修改提示内容的属性

   -->
  <form action="" method="get" autocomplete="on">
    <input type="email" required><br>
    <input type="text" autofocus="autofocus" placeholder="哈哈哈"><br>
    <input type="file" multiple><br>
    <input type="checkbox">
    <input type="submit" value="提交">

  </form>
</body>

</html>
